package com.ssy.lingxi.marketing.api.model.dto;

import java.io.Serializable;

/**
 *  服务内部消息队列DTO
 * @author ds
 * @date 2022/3/8
 * @version 2.0.0
 */
public class MarketingQueueDTO implements Serializable {
    private static final long serialVersionUID = 3438648761127748829L;

    public MarketingQueueDTO() {
    }

    public MarketingQueueDTO(Integer type, String message, Long delayTime) {
        this.type = type;
        this.message = message;
        this.delayTime = delayTime;
        this.times = 0;
    }

    /**
     * 队列类型，定义在 MkQueueMessageTypeEnum 中
     */
    private Integer type;

    /**
     * 队列中的消息，根据队列类型，由不同的业务接口进行处理
     */
    private String message;

    /**
     * （重新）入队列次数，初始值为0
     */
    private Integer times;

    /**
     * 延迟时间（毫秒）
     */
    private Long delayTime;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    public Long getDelayTime() {
        return delayTime;
    }

    public void setDelayTime(Long delayTime) {
        this.delayTime = delayTime;
    }
}
